package com.example.demo.entity.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 文章留言的请求对象
 */
public class Comment {
    // 文章id
    @NotNull(message = "id不能为空")
    private Integer id;
    // 昵称
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    // 留言内容
    @NotBlank(message = "评论内容不能为空")
    private String content;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
